﻿using MugenMvvmToolkit.Interfaces.Views;

namespace MugenMvvmToolkit.Interfaces.ViewModels
{
    /// <summary>
    ///     Represents the interface that adds support for the view in view models.
    /// </summary>
    public interface IHasView : IViewModel
    {
        /// <summary>
        ///     Gets or sets the <see cref="IView" />.
        /// </summary>
        IView View { get; set; }
    }

    /// <summary>
    ///     Represents the interface that adds support for the view in view models.
    /// </summary>
    public interface IHasView<TView> : IViewModel where TView : IView
    {
        /// <summary>
        ///     Gets or sets the <see cref="IView" />.
        /// </summary>
        TView View { get; set; }
    }
}